package com.foreknow.sercive;

import com.foreknow.model.Admin;

import java.sql.SQLException;
import java.util.List;

public interface AdminService {
    /**
     * 添加
     * @param admin
     * @throws SQLException
     */
    public boolean add(Admin admin);

    /**
     * 根据姓名查询
     * @return
     */
    public boolean selectAll(String name,String password);
}
